\(\int \frac {\sin ^3(c+d x)}{(a-b \sin ^4(c+d x))^2} \, dx\) [215]

   Optimal result
   Rubi [A] (verified)
   Mathematica [C] (warning: unable to verify)
   Maple [A] (verified)
   Fricas [B] (verification not implemented)
   Sympy [F(-1)]
   Maxima [F]
   Giac [B] (verification not implemented)
   Mupad [B] (verification not implemented)

Optimal result

Integrand size = 24, antiderivative size = 186 \[ \int \frac {\sin ^3(c+d x)}{\left (a-b \sin ^4(c+d x)\right )^2} \, dx=-\frac {\arctan \left (\frac {\sqrt [4]{b} \cos (c+d x)}{\sqrt {\sqrt {a}-\sqrt {b}}}\right )}{8 \sqrt {a} \left (\sqrt {a}-\sqrt {b}\right )^{3/2} b^{3/4} d}+\frac {\text {arctanh}\left (\frac {\sqrt [4]{b} \cos (c+d x)}{\sqrt {\sqrt {a}+\sqrt {b}}}\right )}{8 \sqrt {a} \left (\sqrt {a}+\sqrt {b}\right )^{3/2} b^{3/4} d}-\frac {\cos (c+d x) \left (2-\cos ^2(c+d x)\right )}{4 (a-b) d \left (a-b+2 b \cos ^2(c+d x)-b \cos ^4(c+d x)\right )} \]

[Out]

-1/4*cos(d*x+c)*(2-cos(d*x+c)^2)/(a-b)/d/(a-b+2*b*cos(d*x+c)^2-b*cos(d*x+c)^4)-1/8*arctan(b^(1/4)*cos(d*x+c)/(
a^(1/2)-b^(1/2))^(1/2))/b^(3/4)/d/a^(1/2)/(a^(1/2)-b^(1/2))^(3/2)+1/8*arctanh(b^(1/4)*cos(d*x+c)/(a^(1/2)+b^(1
/2))^(1/2))/b^(3/4)/d/a^(1/2)/(a^(1/2)+b^(1/2))^(3/2)

Rubi [A] (verified)

Time = 0.12 (sec) , antiderivative size = 186, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.208, Rules used = {3294, 1192, 1180, 211, 214} \[ \int \frac {\sin ^3(c+d x)}{\left (a-b \sin ^4(c+d x)\right )^2} \, dx=-\frac {\arctan \left (\frac {\sqrt [4]{b} \cos (c+d x)}{\sqrt {\sqrt {a}-\sqrt {b}}}\right )}{8 \sqrt {a} b^{3/4} d \left (\sqrt {a}-\sqrt {b}\right )^{3/2}}+\frac {\text {arctanh}\left (\frac {\sqrt [4]{b} \cos (c+d x)}{\sqrt {\sqrt {a}+\sqrt {b}}}\right )}{8 \sqrt {a} b^{3/4} d \left (\sqrt {a}+\sqrt {b}\right )^{3/2}}-\frac {\cos (c+d x) \left (2-\cos ^2(c+d x)\right )}{4 d (a-b) \left (a-b \cos ^4(c+d x)+2 b \cos ^2(c+d x)-b\right )} \]

[In]

Int[Sin[c + d*x]^3/(a - b*Sin[c + d*x]^4)^2,x]

[Out]

-1/8*ArcTan[(b^(1/4)*Cos[c + d*x])/Sqrt[Sqrt[a] - Sqrt[b]]]/(Sqrt[a]*(Sqrt[a] - Sqrt[b])^(3/2)*b^(3/4)*d) + Ar
cTanh[(b^(1/4)*Cos[c + d*x])/Sqrt[Sqrt[a] + Sqrt[b]]]/(8*Sqrt[a]*(Sqrt[a] + Sqrt[b])^(3/2)*b^(3/4)*d) - (Cos[c
 + d*x]*(2 - Cos[c + d*x]^2))/(4*(a - b)*d*(a - b + 2*b*Cos[c + d*x]^2 - b*Cos[c + d*x]^4))

Rule 211

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[a/b, 2]/a)*ArcTan[x/Rt[a/b, 2]], x] /; FreeQ[{a, b}, x]
&& PosQ[a/b]

Rule 214

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[-a/b, 2]/a)*ArcTanh[x/Rt[-a/b, 2]], x] /; FreeQ[{a, b},
x] && NegQ[a/b]

Rule 1180

Int[((d_) + (e_.)*(x_)^2)/((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4), x_Symbol] :> With[{q = Rt[b^2 - 4*a*c, 2]}, Di
st[e/2 + (2*c*d - b*e)/(2*q), Int[1/(b/2 - q/2 + c*x^2), x], x] + Dist[e/2 - (2*c*d - b*e)/(2*q), Int[1/(b/2 +
 q/2 + c*x^2), x], x]] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - a*e^2, 0] && PosQ[b^
2 - 4*a*c]

Rule 1192

Int[((d_) + (e_.)*(x_)^2)*((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4)^(p_), x_Symbol] :> Simp[x*(a*b*e - d*(b^2 - 2*a
*c) - c*(b*d - 2*a*e)*x^2)*((a + b*x^2 + c*x^4)^(p + 1)/(2*a*(p + 1)*(b^2 - 4*a*c))), x] + Dist[1/(2*a*(p + 1)
*(b^2 - 4*a*c)), Int[Simp[(2*p + 3)*d*b^2 - a*b*e - 2*a*c*d*(4*p + 5) + (4*p + 7)*(d*b - 2*a*e)*c*x^2, x]*(a +
 b*x^2 + c*x^4)^(p + 1), x], x] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - b*d*e + a*e
^2, 0] && LtQ[p, -1] && IntegerQ[2*p]

Rule 3294

Int[sin[(e_.) + (f_.)*(x_)]^(m_.)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]^4)^(p_.), x_Symbol] :> With[{ff = Free
Factors[Cos[e + f*x], x]}, Dist[-ff/f, Subst[Int[(1 - ff^2*x^2)^((m - 1)/2)*(a + b - 2*b*ff^2*x^2 + b*ff^4*x^4
)^p, x], x, Cos[e + f*x]/ff], x]] /; FreeQ[{a, b, e, f, p}, x] && IntegerQ[(m - 1)/2]

Rubi steps \begin{align*} \text {integral}& = -\frac {\text {Subst}\left (\int \frac {1-x^2}{\left (a-b+2 b x^2-b x^4\right )^2} \, dx,x,\cos (c+d x)\right )}{d} \\ & = -\frac {\cos (c+d x) \left (2-\cos ^2(c+d x)\right )}{4 (a-b) d \left (a-b+2 b \cos ^2(c+d x)-b \cos ^4(c+d x)\right )}+\frac {\text {Subst}\left (\int \frac {-4 a b+2 a b x^2}{a-b+2 b x^2-b x^4} \, dx,x,\cos (c+d x)\right )}{8 a (a-b) b d} \\ & = -\frac {\cos (c+d x) \left (2-\cos ^2(c+d x)\right )}{4 (a-b) d \left (a-b+2 b \cos ^2(c+d x)-b \cos ^4(c+d x)\right )}+\frac {\text {Subst}\left (\int \frac {1}{-\sqrt {a} \sqrt {b}+b-b x^2} \, dx,x,\cos (c+d x)\right )}{8 \sqrt {a} \left (\sqrt {a}-\sqrt {b}\right ) d}+\frac {\text {Subst}\left (\int \frac {1}{\sqrt {a} \sqrt {b}+b-b x^2} \, dx,x,\cos (c+d x)\right )}{8 \sqrt {a} \left (\sqrt {a}+\sqrt {b}\right ) d} \\ & = -\frac {\arctan \left (\frac {\sqrt [4]{b} \cos (c+d x)}{\sqrt {\sqrt {a}-\sqrt {b}}}\right )}{8 \sqrt {a} \left (\sqrt {a}-\sqrt {b}\right )^{3/2} b^{3/4} d}+\frac {\text {arctanh}\left (\frac {\sqrt [4]{b} \cos (c+d x)}{\sqrt {\sqrt {a}+\sqrt {b}}}\right )}{8 \sqrt {a} \left (\sqrt {a}+\sqrt {b}\right )^{3/2} b^{3/4} d}-\frac {\cos (c+d x) \left (2-\cos ^2(c+d x)\right )}{4 (a-b) d \left (a-b+2 b \cos ^2(c+d x)-b \cos ^4(c+d x)\right )} \\ \end{align*}

Mathematica [C] (warning: unable to verify)

Result contains higher order function than in optimal. Order 9 vs. order 3 in optimal.

Time = 0.48 (sec) , antiderivative size = 345, normalized size of antiderivative = 1.85 \[ \int \frac {\sin ^3(c+d x)}{\left (a-b \sin ^4(c+d x)\right )^2} \, dx=\frac {\frac {16 (-5 \cos (c+d x)+\cos (3 (c+d x)))}{8 a-3 b+4 b \cos (2 (c+d x))-b \cos (4 (c+d x))}-i \text {RootSum}\left [b-4 b \text {$\#$1}^2-16 a \text {$\#$1}^4+6 b \text {$\#$1}^4-4 b \text {$\#$1}^6+b \text {$\#$1}^8\&,\frac {-2 \arctan \left (\frac {\sin (c+d x)}{\cos (c+d x)-\text {$\#$1}}\right )+i \log \left (1-2 \cos (c+d x) \text {$\#$1}+\text {$\#$1}^2\right )+14 \arctan \left (\frac {\sin (c+d x)}{\cos (c+d x)-\text {$\#$1}}\right ) \text {$\#$1}^2-7 i \log \left (1-2 \cos (c+d x) \text {$\#$1}+\text {$\#$1}^2\right ) \text {$\#$1}^2-14 \arctan \left (\frac {\sin (c+d x)}{\cos (c+d x)-\text {$\#$1}}\right ) \text {$\#$1}^4+7 i \log \left (1-2 \cos (c+d x) \text {$\#$1}+\text {$\#$1}^2\right ) \text {$\#$1}^4+2 \arctan \left (\frac {\sin (c+d x)}{\cos (c+d x)-\text {$\#$1}}\right ) \text {$\#$1}^6-i \log \left (1-2 \cos (c+d x) \text {$\#$1}+\text {$\#$1}^2\right ) \text {$\#$1}^6}{-b \text {$\#$1}-8 a \text {$\#$1}^3+3 b \text {$\#$1}^3-3 b \text {$\#$1}^5+b \text {$\#$1}^7}\&\right ]}{32 (a-b) d} \]

[In]

Integrate[Sin[c + d*x]^3/(a - b*Sin[c + d*x]^4)^2,x]

[Out]

((16*(-5*Cos[c + d*x] + Cos[3*(c + d*x)]))/(8*a - 3*b + 4*b*Cos[2*(c + d*x)] - b*Cos[4*(c + d*x)]) - I*RootSum
[b - 4*b*#1^2 - 16*a*#1^4 + 6*b*#1^4 - 4*b*#1^6 + b*#1^8 & , (-2*ArcTan[Sin[c + d*x]/(Cos[c + d*x] - #1)] + I*
Log[1 - 2*Cos[c + d*x]*#1 + #1^2] + 14*ArcTan[Sin[c + d*x]/(Cos[c + d*x] - #1)]*#1^2 - (7*I)*Log[1 - 2*Cos[c +
 d*x]*#1 + #1^2]*#1^2 - 14*ArcTan[Sin[c + d*x]/(Cos[c + d*x] - #1)]*#1^4 + (7*I)*Log[1 - 2*Cos[c + d*x]*#1 + #
1^2]*#1^4 + 2*ArcTan[Sin[c + d*x]/(Cos[c + d*x] - #1)]*#1^6 - I*Log[1 - 2*Cos[c + d*x]*#1 + #1^2]*#1^6)/(-(b*#
1) - 8*a*#1^3 + 3*b*#1^3 - 3*b*#1^5 + b*#1^7) & ])/(32*(a - b)*d)

Maple [A] (verified)

Time = 1.88 (sec) , antiderivative size = 204, normalized size of antiderivative = 1.10

method result size
derivativedivides \(\frac {b^{2} \left (\frac {\sqrt {a b}\, \left (\frac {\cos \left (d x +c \right )}{2 \left (\sqrt {a b}+b \right ) \left (-b \left (\cos ^{2}\left (d x +c \right )\right )+\sqrt {a b}+b \right )}+\frac {\operatorname {arctanh}\left (\frac {\cos \left (d x +c \right ) b}{\sqrt {\left (\sqrt {a b}+b \right ) b}}\right )}{2 \left (\sqrt {a b}+b \right ) \sqrt {\left (\sqrt {a b}+b \right ) b}}\right )}{4 a \,b^{2}}-\frac {\sqrt {a b}\, \left (\frac {\cos \left (d x +c \right )}{2 \left (\sqrt {a b}-b \right ) \left (b \left (\cos ^{2}\left (d x +c \right )\right )+\sqrt {a b}-b \right )}+\frac {\arctan \left (\frac {\cos \left (d x +c \right ) b}{\sqrt {\left (\sqrt {a b}-b \right ) b}}\right )}{2 \left (\sqrt {a b}-b \right ) \sqrt {\left (\sqrt {a b}-b \right ) b}}\right )}{4 a \,b^{2}}\right )}{d}\) \(204\)
default \(\frac {b^{2} \left (\frac {\sqrt {a b}\, \left (\frac {\cos \left (d x +c \right )}{2 \left (\sqrt {a b}+b \right ) \left (-b \left (\cos ^{2}\left (d x +c \right )\right )+\sqrt {a b}+b \right )}+\frac {\operatorname {arctanh}\left (\frac {\cos \left (d x +c \right ) b}{\sqrt {\left (\sqrt {a b}+b \right ) b}}\right )}{2 \left (\sqrt {a b}+b \right ) \sqrt {\left (\sqrt {a b}+b \right ) b}}\right )}{4 a \,b^{2}}-\frac {\sqrt {a b}\, \left (\frac {\cos \left (d x +c \right )}{2 \left (\sqrt {a b}-b \right ) \left (b \left (\cos ^{2}\left (d x +c \right )\right )+\sqrt {a b}-b \right )}+\frac {\arctan \left (\frac {\cos \left (d x +c \right ) b}{\sqrt {\left (\sqrt {a b}-b \right ) b}}\right )}{2 \left (\sqrt {a b}-b \right ) \sqrt {\left (\sqrt {a b}-b \right ) b}}\right )}{4 a \,b^{2}}\right )}{d}\) \(204\)
risch \(-\frac {{\mathrm e}^{7 i \left (d x +c \right )}-5 \,{\mathrm e}^{5 i \left (d x +c \right )}-5 \,{\mathrm e}^{3 i \left (d x +c \right )}+{\mathrm e}^{i \left (d x +c \right )}}{2 \left (a -b \right ) d \left ({\mathrm e}^{8 i \left (d x +c \right )} b -4 b \,{\mathrm e}^{6 i \left (d x +c \right )}-16 a \,{\mathrm e}^{4 i \left (d x +c \right )}+6 b \,{\mathrm e}^{4 i \left (d x +c \right )}-4 b \,{\mathrm e}^{2 i \left (d x +c \right )}+b \right )}+\frac {i \left (\munderset {\textit {\_R} =\operatorname {RootOf}\left (-1+\left (16 a^{5} b^{3} d^{4}-48 a^{4} b^{4} d^{4}+48 a^{3} b^{5} d^{4}-16 a^{2} b^{6} d^{4}\right ) \textit {\_Z}^{4}+\left (-24 a^{2} b^{2} d^{2}-8 a \,b^{3} d^{2}\right ) \textit {\_Z}^{2}\right )}{\sum }\textit {\_R} \ln \left ({\mathrm e}^{2 i \left (d x +c \right )}+\left (\left (-\frac {16 i a^{5} b^{2} d^{3}}{a +3 b}+\frac {32 i a^{4} b^{3} d^{3}}{a +3 b}-\frac {32 i a^{2} b^{5} d^{3}}{a +3 b}+\frac {16 i a \,b^{6} d^{3}}{a +3 b}\right ) \textit {\_R}^{3}+\left (\frac {20 i b d \,a^{2}}{a +3 b}+\frac {40 i b^{2} d a}{a +3 b}+\frac {4 i b^{3} d}{a +3 b}\right ) \textit {\_R} \right ) {\mathrm e}^{i \left (d x +c \right )}+1\right )\right )}{8}\) \(352\)

[In]

int(sin(d*x+c)^3/(a-b*sin(d*x+c)^4)^2,x,method=_RETURNVERBOSE)

[Out]

1/d*b^2*(1/4*(a*b)^(1/2)/a/b^2*(1/2*cos(d*x+c)/((a*b)^(1/2)+b)/(-b*cos(d*x+c)^2+(a*b)^(1/2)+b)+1/2/((a*b)^(1/2
)+b)/(((a*b)^(1/2)+b)*b)^(1/2)*arctanh(cos(d*x+c)*b/(((a*b)^(1/2)+b)*b)^(1/2)))-1/4*(a*b)^(1/2)/a/b^2*(1/2*cos
(d*x+c)/((a*b)^(1/2)-b)/(b*cos(d*x+c)^2+(a*b)^(1/2)-b)+1/2/((a*b)^(1/2)-b)/(((a*b)^(1/2)-b)*b)^(1/2)*arctan(co
s(d*x+c)*b/(((a*b)^(1/2)-b)*b)^(1/2))))

Fricas [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 2049 vs. \(2 (141) = 282\).

Time = 0.42 (sec) , antiderivative size = 2049, normalized size of antiderivative = 11.02 \[ \int \frac {\sin ^3(c+d x)}{\left (a-b \sin ^4(c+d x)\right )^2} \, dx=\text {Too large to display} \]

[In]

integrate(sin(d*x+c)^3/(a-b*sin(d*x+c)^4)^2,x, algorithm="fricas")

[Out]

-1/16*(4*cos(d*x + c)^3 - ((a*b - b^2)*d*cos(d*x + c)^4 - 2*(a*b - b^2)*d*cos(d*x + c)^2 - (a^2 - 2*a*b + b^2)
*d)*sqrt(-((a^4*b - 3*a^3*b^2 + 3*a^2*b^3 - a*b^4)*d^2*sqrt((a^2 + 6*a*b + 9*b^2)/((a^7*b^3 - 6*a^6*b^4 + 15*a
^5*b^5 - 20*a^4*b^6 + 15*a^3*b^7 - 6*a^2*b^8 + a*b^9)*d^4)) + 3*a + b)/((a^4*b - 3*a^3*b^2 + 3*a^2*b^3 - a*b^4
)*d^2))*log((a + 3*b)*cos(d*x + c) - ((a^5*b^2 - 2*a^4*b^3 + 2*a^2*b^5 - a*b^6)*d^3*sqrt((a^2 + 6*a*b + 9*b^2)
/((a^7*b^3 - 6*a^6*b^4 + 15*a^5*b^5 - 20*a^4*b^6 + 15*a^3*b^7 - 6*a^2*b^8 + a*b^9)*d^4)) - 2*(a^2*b + 3*a*b^2)
*d)*sqrt(-((a^4*b - 3*a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^2*b + 3*a*b^2)*d)*sqrt(((a^4*b - 3*a^3*b^2 + 3*a^2*b^3 - a*b
^4)*d^2*sqrt((a^2 + 6*a*b + 9*b^2)/((a^7*b^3 - 6*a^6*b^4 + 15*a^5*b^5 - 20*a^4*b^6 + 15*a^3*b^7 - 6*a^2*b^8 +
a*b^9)*d^4)) - 3*a - b)/((a^4*b - 3*a^3*b^2 + 3*a^2*b^3 - a*b^4)*d^2))) - 8*cos(d*x + c))/((a*b - b^2)*d*cos(d
*x + c)^4 - 2*(a*b - b^2)*d*cos(d*x + c)^2 - (a^2 - 2*a*b + b^2)*d)

Sympy [F(-1)]

Timed out. \[ \int \frac {\sin ^3(c+d x)}{\left (a-b \sin ^4(c+d x)\right )^2} \, dx=\text {Timed out} \]

[In]

integrate(sin(d*x+c)**3/(a-b*sin(d*x+c)**4)**2,x)

[Out]

Timed out

Maxima [F]

\[ \int \frac {\sin ^3(c+d x)}{\left (a-b \sin ^4(c+d x)\right )^2} \, dx=\int { \frac {\sin \left (d x + c\right )^{3}}{{\left (b \sin \left (d x + c\right )^{4} - a\right )}^{2}} \,d x } \]

[In]

integrate(sin(d*x+c)^3/(a-b*sin(d*x+c)^4)^2,x, algorithm="maxima")

[Out]

1/2*(4*b*cos(2*d*x + 2*c)*cos(d*x + c) - 20*b*sin(3*d*x + 3*c)*sin(2*d*x + 2*c) + 4*b*sin(2*d*x + 2*c)*sin(d*x
 + c) - (b*cos(7*d*x + 7*c) - 5*b*cos(5*d*x + 5*c) - 5*b*cos(3*d*x + 3*c) + b*cos(d*x + c))*cos(8*d*x + 8*c) +
 (4*b*cos(6*d*x + 6*c) + 2*(8*a - 3*b)*cos(4*d*x + 4*c) + 4*b*cos(2*d*x + 2*c) - b)*cos(7*d*x + 7*c) - 4*(5*b*
cos(5*d*x + 5*c) + 5*b*cos(3*d*x + 3*c) - b*cos(d*x + c))*cos(6*d*x + 6*c) - 5*(2*(8*a - 3*b)*cos(4*d*x + 4*c)
 + 4*b*cos(2*d*x + 2*c) - b)*cos(5*d*x + 5*c) - 2*(5*(8*a - 3*b)*cos(3*d*x + 3*c) - (8*a - 3*b)*cos(d*x + c))*
cos(4*d*x + 4*c) - 5*(4*b*cos(2*d*x + 2*c) - b)*cos(3*d*x + 3*c) - b*cos(d*x + c) + 2*((a*b^2 - b^3)*d*cos(8*d
*x + 8*c)^2 + 16*(a*b^2 - b^3)*d*cos(6*d*x + 6*c)^2 + 4*(64*a^3 - 112*a^2*b + 57*a*b^2 - 9*b^3)*d*cos(4*d*x +
4*c)^2 + 16*(a*b^2 - b^3)*d*cos(2*d*x + 2*c)^2 + (a*b^2 - b^3)*d*sin(8*d*x + 8*c)^2 + 16*(a*b^2 - b^3)*d*sin(6
*d*x + 6*c)^2 + 4*(64*a^3 - 112*a^2*b + 57*a*b^2 - 9*b^3)*d*sin(4*d*x + 4*c)^2 + 16*(8*a^2*b - 11*a*b^2 + 3*b^
3)*d*sin(4*d*x + 4*c)*sin(2*d*x + 2*c) + 16*(a*b^2 - b^3)*d*sin(2*d*x + 2*c)^2 - 8*(a*b^2 - b^3)*d*cos(2*d*x +
 2*c) + (a*b^2 - b^3)*d - 2*(4*(a*b^2 - b^3)*d*cos(6*d*x + 6*c) + 2*(8*a^2*b - 11*a*b^2 + 3*b^3)*d*cos(4*d*x +
 4*c) + 4*(a*b^2 - b^3)*d*cos(2*d*x + 2*c) - (a*b^2 - b^3)*d)*cos(8*d*x + 8*c) + 8*(2*(8*a^2*b - 11*a*b^2 + 3*
b^3)*d*cos(4*d*x + 4*c) + 4*(a*b^2 - b^3)*d*cos(2*d*x + 2*c) - (a*b^2 - b^3)*d)*cos(6*d*x + 6*c) + 4*(4*(8*a^2
*b - 11*a*b^2 + 3*b^3)*d*cos(2*d*x + 2*c) - (8*a^2*b - 11*a*b^2 + 3*b^3)*d)*cos(4*d*x + 4*c) - 4*(2*(a*b^2 - b
^3)*d*sin(6*d*x + 6*c) + (8*a^2*b - 11*a*b^2 + 3*b^3)*d*sin(4*d*x + 4*c) + 2*(a*b^2 - b^3)*d*sin(2*d*x + 2*c))
*sin(8*d*x + 8*c) + 16*((8*a^2*b - 11*a*b^2 + 3*b^3)*d*sin(4*d*x + 4*c) + 2*(a*b^2 - b^3)*d*sin(2*d*x + 2*c))*
sin(6*d*x + 6*c))*integrate(1/2*(28*b*cos(3*d*x + 3*c)*sin(2*d*x + 2*c) - 4*b*cos(d*x + c)*sin(2*d*x + 2*c) +
4*b*cos(2*d*x + 2*c)*sin(d*x + c) + (b*sin(7*d*x + 7*c) - 7*b*sin(5*d*x + 5*c) + 7*b*sin(3*d*x + 3*c) - b*sin(
d*x + c))*cos(8*d*x + 8*c) + 2*(2*b*sin(6*d*x + 6*c) + (8*a - 3*b)*sin(4*d*x + 4*c) + 2*b*sin(2*d*x + 2*c))*co
s(7*d*x + 7*c) + 4*(7*b*sin(5*d*x + 5*c) - 7*b*sin(3*d*x + 3*c) + b*sin(d*x + c))*cos(6*d*x + 6*c) - 14*((8*a
- 3*b)*sin(4*d*x + 4*c) + 2*b*sin(2*d*x + 2*c))*cos(5*d*x + 5*c) - 2*(7*(8*a - 3*b)*sin(3*d*x + 3*c) - (8*a -
3*b)*sin(d*x + c))*cos(4*d*x + 4*c) - (b*cos(7*d*x + 7*c) - 7*b*cos(5*d*x + 5*c) + 7*b*cos(3*d*x + 3*c) - b*co
s(d*x + c))*sin(8*d*x + 8*c) - (4*b*cos(6*d*x + 6*c) + 2*(8*a - 3*b)*cos(4*d*x + 4*c) + 4*b*cos(2*d*x + 2*c) -
 b)*sin(7*d*x + 7*c) - 4*(7*b*cos(5*d*x + 5*c) - 7*b*cos(3*d*x + 3*c) + b*cos(d*x + c))*sin(6*d*x + 6*c) + 7*(
2*(8*a - 3*b)*cos(4*d*x + 4*c) + 4*b*cos(2*d*x + 2*c) - b)*sin(5*d*x + 5*c) + 2*(7*(8*a - 3*b)*cos(3*d*x + 3*c
) - (8*a - 3*b)*cos(d*x + c))*sin(4*d*x + 4*c) - 7*(4*b*cos(2*d*x + 2*c) - b)*sin(3*d*x + 3*c) - b*sin(d*x + c
))/(a*b^2 - b^3 + (a*b^2 - b^3)*cos(8*d*x + 8*c)^2 + 16*(a*b^2 - b^3)*cos(6*d*x + 6*c)^2 + 4*(64*a^3 - 112*a^2
*b + 57*a*b^2 - 9*b^3)*cos(4*d*x + 4*c)^2 + 16*(a*b^2 - b^3)*cos(2*d*x + 2*c)^2 + (a*b^2 - b^3)*sin(8*d*x + 8*
c)^2 + 16*(a*b^2 - b^3)*sin(6*d*x + 6*c)^2 + 4*(64*a^3 - 112*a^2*b + 57*a*b^2 - 9*b^3)*sin(4*d*x + 4*c)^2 + 16
*(8*a^2*b - 11*a*b^2 + 3*b^3)*sin(4*d*x + 4*c)*sin(2*d*x + 2*c) + 16*(a*b^2 - b^3)*sin(2*d*x + 2*c)^2 + 2*(a*b
^2 - b^3 - 4*(a*b^2 - b^3)*cos(6*d*x + 6*c) - 2*(8*a^2*b - 11*a*b^2 + 3*b^3)*cos(4*d*x + 4*c) - 4*(a*b^2 - b^3
)*cos(2*d*x + 2*c))*cos(8*d*x + 8*c) - 8*(a*b^2 - b^3 - 2*(8*a^2*b - 11*a*b^2 + 3*b^3)*cos(4*d*x + 4*c) - 4*(a
*b^2 - b^3)*cos(2*d*x + 2*c))*cos(6*d*x + 6*c) - 4*(8*a^2*b - 11*a*b^2 + 3*b^3 - 4*(8*a^2*b - 11*a*b^2 + 3*b^3
)*cos(2*d*x + 2*c))*cos(4*d*x + 4*c) - 8*(a*b^2 - b^3)*cos(2*d*x + 2*c) - 4*(2*(a*b^2 - b^3)*sin(6*d*x + 6*c)
+ (8*a^2*b - 11*a*b^2 + 3*b^3)*sin(4*d*x + 4*c) + 2*(a*b^2 - b^3)*sin(2*d*x + 2*c))*sin(8*d*x + 8*c) + 16*((8*
a^2*b - 11*a*b^2 + 3*b^3)*sin(4*d*x + 4*c) + 2*(a*b^2 - b^3)*sin(2*d*x + 2*c))*sin(6*d*x + 6*c)), x) - (b*sin(
7*d*x + 7*c) - 5*b*sin(5*d*x + 5*c) - 5*b*sin(3*d*x + 3*c) + b*sin(d*x + c))*sin(8*d*x + 8*c) + 2*(2*b*sin(6*d
*x + 6*c) + (8*a - 3*b)*sin(4*d*x + 4*c) + 2*b*sin(2*d*x + 2*c))*sin(7*d*x + 7*c) - 4*(5*b*sin(5*d*x + 5*c) +
5*b*sin(3*d*x + 3*c) - b*sin(d*x + c))*sin(6*d*x + 6*c) - 10*((8*a - 3*b)*sin(4*d*x + 4*c) + 2*b*sin(2*d*x + 2
*c))*sin(5*d*x + 5*c) - 2*(5*(8*a - 3*b)*sin(3*d*x + 3*c) - (8*a - 3*b)*sin(d*x + c))*sin(4*d*x + 4*c))/((a*b^
2 - b^3)*d*cos(8*d*x + 8*c)^2 + 16*(a*b^2 - b^3)*d*cos(6*d*x + 6*c)^2 + 4*(64*a^3 - 112*a^2*b + 57*a*b^2 - 9*b
^3)*d*cos(4*d*x + 4*c)^2 + 16*(a*b^2 - b^3)*d*cos(2*d*x + 2*c)^2 + (a*b^2 - b^3)*d*sin(8*d*x + 8*c)^2 + 16*(a*
b^2 - b^3)*d*sin(6*d*x + 6*c)^2 + 4*(64*a^3 - 112*a^2*b + 57*a*b^2 - 9*b^3)*d*sin(4*d*x + 4*c)^2 + 16*(8*a^2*b
 - 11*a*b^2 + 3*b^3)*d*sin(4*d*x + 4*c)*sin(2*d*x + 2*c) + 16*(a*b^2 - b^3)*d*sin(2*d*x + 2*c)^2 - 8*(a*b^2 -
b^3)*d*cos(2*d*x + 2*c) + (a*b^2 - b^3)*d - 2*(4*(a*b^2 - b^3)*d*cos(6*d*x + 6*c) + 2*(8*a^2*b - 11*a*b^2 + 3*
b^3)*d*cos(4*d*x + 4*c) + 4*(a*b^2 - b^3)*d*cos(2*d*x + 2*c) - (a*b^2 - b^3)*d)*cos(8*d*x + 8*c) + 8*(2*(8*a^2
*b - 11*a*b^2 + 3*b^3)*d*cos(4*d*x + 4*c) + 4*(a*b^2 - b^3)*d*cos(2*d*x + 2*c) - (a*b^2 - b^3)*d)*cos(6*d*x +
6*c) + 4*(4*(8*a^2*b - 11*a*b^2 + 3*b^3)*d*cos(2*d*x + 2*c) - (8*a^2*b - 11*a*b^2 + 3*b^3)*d)*cos(4*d*x + 4*c)
 - 4*(2*(a*b^2 - b^3)*d*sin(6*d*x + 6*c) + (8*a^2*b - 11*a*b^2 + 3*b^3)*d*sin(4*d*x + 4*c) + 2*(a*b^2 - b^3)*d
*sin(2*d*x + 2*c))*sin(8*d*x + 8*c) + 16*((8*a^2*b - 11*a*b^2 + 3*b^3)*d*sin(4*d*x + 4*c) + 2*(a*b^2 - b^3)*d*
sin(2*d*x + 2*c))*sin(6*d*x + 6*c))

Giac [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 577 vs. \(2 (141) = 282\).

Time = 1.00 (sec) , antiderivative size = 577, normalized size of antiderivative = 3.10 \[ \int \frac {\sin ^3(c+d x)}{\left (a-b \sin ^4(c+d x)\right )^2} \, dx=-\frac {\frac {\cos \left (d x + c\right )^{3}}{d} - \frac {2 \, \cos \left (d x + c\right )}{d}}{4 \, {\left (b \cos \left (d x + c\right )^{4} - 2 \, b \cos \left (d x + c\right )^{2} - a + b\right )} {\left (a - b\right )}} + \frac {{\left ({\left (a^{2} b - 2 \, a b^{2} + b^{3}\right )} \sqrt {-b^{2} + \sqrt {a b} b} d^{4} - 2 \, \sqrt {a b} \sqrt {-b^{2} + \sqrt {a b} b} {\left (a - b\right )} d^{2} {\left | -a d^{2} + b d^{2} \right |} + {\left (a d^{2} - b d^{2}\right )}^{2} \sqrt {-b^{2} + \sqrt {a b} b} a\right )} \arctan \left (\frac {\cos \left (d x + c\right )}{d \sqrt {-\frac {a b d^{2} - b^{2} d^{2} + \sqrt {{\left (a b d^{2} - b^{2} d^{2}\right )}^{2} + {\left (a b d^{4} - b^{2} d^{4}\right )} {\left (a^{2} - 2 \, a b + b^{2}\right )}}}{a b d^{4} - b^{2} d^{4}}}}\right )}{8 \, {\left (a^{3} - 3 \, a^{2} b + 3 \, a b^{2} - b^{3}\right )} \sqrt {a b} d^{3} {\left | -a d^{2} + b d^{2} \right |} {\left | b \right |}} - \frac {{\left ({\left (a^{2} b - 2 \, a b^{2} + b^{3}\right )} \sqrt {-b^{2} - \sqrt {a b} b} d^{4} + 2 \, \sqrt {a b} \sqrt {-b^{2} - \sqrt {a b} b} {\left (a - b\right )} d^{2} {\left | -a d^{2} + b d^{2} \right |} + {\left (a d^{2} - b d^{2}\right )}^{2} \sqrt {-b^{2} - \sqrt {a b} b} a\right )} \arctan \left (\frac {\cos \left (d x + c\right )}{d \sqrt {-\frac {a b d^{2} - b^{2} d^{2} - \sqrt {{\left (a b d^{2} - b^{2} d^{2}\right )}^{2} + {\left (a b d^{4} - b^{2} d^{4}\right )} {\left (a^{2} - 2 \, a b + b^{2}\right )}}}{a b d^{4} - b^{2} d^{4}}}}\right )}{8 \, {\left (a^{3} - 3 \, a^{2} b + 3 \, a b^{2} - b^{3}\right )} \sqrt {a b} d^{3} {\left | -a d^{2} + b d^{2} \right |} {\left | b \right |}} \]

[In]

integrate(sin(d*x+c)^3/(a-b*sin(d*x+c)^4)^2,x, algorithm="giac")

[Out]

-1/4*(cos(d*x + c)^3/d - 2*cos(d*x + c)/d)/((b*cos(d*x + c)^4 - 2*b*cos(d*x + c)^2 - a + b)*(a - b)) + 1/8*((a
^2*b - 2*a*b^2 + b^3)*sqrt(-b^2 + sqrt(a*b)*b)*d^4 - 2*sqrt(a*b)*sqrt(-b^2 + sqrt(a*b)*b)*(a - b)*d^2*abs(-a*d
^2 + b*d^2) + (a*d^2 - b*d^2)^2*sqrt(-b^2 + sqrt(a*b)*b)*a)*arctan(cos(d*x + c)/(d*sqrt(-(a*b*d^2 - b^2*d^2 +
sqrt((a*b*d^2 - b^2*d^2)^2 + (a*b*d^4 - b^2*d^4)*(a^2 - 2*a*b + b^2)))/(a*b*d^4 - b^2*d^4))))/((a^3 - 3*a^2*b
+ 3*a*b^2 - b^3)*sqrt(a*b)*d^3*abs(-a*d^2 + b*d^2)*abs(b)) - 1/8*((a^2*b - 2*a*b^2 + b^3)*sqrt(-b^2 - sqrt(a*b
)*b)*d^4 + 2*sqrt(a*b)*sqrt(-b^2 - sqrt(a*b)*b)*(a - b)*d^2*abs(-a*d^2 + b*d^2) + (a*d^2 - b*d^2)^2*sqrt(-b^2
- sqrt(a*b)*b)*a)*arctan(cos(d*x + c)/(d*sqrt(-(a*b*d^2 - b^2*d^2 - sqrt((a*b*d^2 - b^2*d^2)^2 + (a*b*d^4 - b^
2*d^4)*(a^2 - 2*a*b + b^2)))/(a*b*d^4 - b^2*d^4))))/((a^3 - 3*a^2*b + 3*a*b^2 - b^3)*sqrt(a*b)*d^3*abs(-a*d^2
+ b*d^2)*abs(b))

Mupad [B] (verification not implemented)

Time = 15.73 (sec) , antiderivative size = 3060, normalized size of antiderivative = 16.45 \[ \int \frac {\sin ^3(c+d x)}{\left (a-b \sin ^4(c+d x)\right )^2} \, dx=\text {Too large to display} \]

[In]

int(sin(c + d*x)^3/(a - b*sin(c + d*x)^4)^2,x)

[Out]

(cos(c + d*x)^3/(4*(a - b)) - cos(c + d*x)/(2*(a - b)))/(d*(a - b + 2*b*cos(c + d*x)^2 - b*cos(c + d*x)^4)) -
(atan(((((512*a*b^4 - 512*a^2*b^3)/(64*(a^2 - 2*a*b + b^2)) - (cos(c + d*x)*((a*(a^3*b^3)^(1/2) + 3*b*(a^3*b^3
)^(1/2) + a*b^3 + 3*a^2*b^2)/(256*(a^2*b^6 - 3*a^3*b^5 + 3*a^4*b^4 - a^5*b^3)))^(1/2)*(256*a*b^6 - 512*a^2*b^5
 + 256*a^3*b^4))/(4*(a^2 - 2*a*b + b^2)))*((a*(a^3*b^3)^(1/2) + 3*b*(a^3*b^3)^(1/2) + a*b^3 + 3*a^2*b^2)/(256*
(a^2*b^6 - 3*a^3*b^5 + 3*a^4*b^4 - a^5*b^3)))^(1/2) + (cos(c + d*x)*(a*b^2 + b^3))/(4*(a^2 - 2*a*b + b^2)))*((
a*(a^3*b^3)^(1/2) + 3*b*(a^3*b^3)^(1/2) + a*b^3 + 3*a^2*b^2)/(256*(a^2*b^6 - 3*a^3*b^5 + 3*a^4*b^4 - a^5*b^3))
)^(1/2)*1i - (((512*a*b^4 - 512*a^2*b^3)/(64*(a^2 - 2*a*b + b^2)) + (cos(c + d*x)*((a*(a^3*b^3)^(1/2) + 3*b*(a
^3*b^3)^(1/2) + a*b^3 + 3*a^2*b^2)/(256*(a^2*b^6 - 3*a^3*b^5 + 3*a^4*b^4 - a^5*b^3)))^(1/2)*(256*a*b^6 - 512*a
^2*b^5 + 256*a^3*b^4))/(4*(a^2 - 2*a*b + b^2)))*((a*(a^3*b^3)^(1/2) + 3*b*(a^3*b^3)^(1/2) + a*b^3 + 3*a^2*b^2)
/(256*(a^2*b^6 - 3*a^3*b^5 + 3*a^4*b^4 - a^5*b^3)))^(1/2) - (cos(c + d*x)*(a*b^2 + b^3))/(4*(a^2 - 2*a*b + b^2
)))*((a*(a^3*b^3)^(1/2) + 3*b*(a^3*b^3)^(1/2) + a*b^3 + 3*a^2*b^2)/(256*(a^2*b^6 - 3*a^3*b^5 + 3*a^4*b^4 - a^5
*b^3)))^(1/2)*1i)/(b/(32*(a^2 - 2*a*b + b^2)) + (((512*a*b^4 - 512*a^2*b^3)/(64*(a^2 - 2*a*b + b^2)) - (cos(c
+ d*x)*((a*(a^3*b^3)^(1/2) + 3*b*(a^3*b^3)^(1/2) + a*b^3 + 3*a^2*b^2)/(256*(a^2*b^6 - 3*a^3*b^5 + 3*a^4*b^4 -
a^5*b^3)))^(1/2)*(256*a*b^6 - 512*a^2*b^5 + 256*a^3*b^4))/(4*(a^2 - 2*a*b + b^2)))*((a*(a^3*b^3)^(1/2) + 3*b*(
a^3*b^3)^(1/2) + a*b^3 + 3*a^2*b^2)/(256*(a^2*b^6 - 3*a^3*b^5 + 3*a^4*b^4 - a^5*b^3)))^(1/2) + (cos(c + d*x)*(
a*b^2 + b^3))/(4*(a^2 - 2*a*b + b^2)))*((a*(a^3*b^3)^(1/2) + 3*b*(a^3*b^3)^(1/2) + a*b^3 + 3*a^2*b^2)/(256*(a^
2*b^6 - 3*a^3*b^5 + 3*a^4*b^4 - a^5*b^3)))^(1/2) + (((512*a*b^4 - 512*a^2*b^3)/(64*(a^2 - 2*a*b + b^2)) + (cos
(c + d*x)*((a*(a^3*b^3)^(1/2) + 3*b*(a^3*b^3)^(1/2) + a*b^3 + 3*a^2*b^2)/(256*(a^2*b^6 - 3*a^3*b^5 + 3*a^4*b^4
 - a^5*b^3)))^(1/2)*(256*a*b^6 - 512*a^2*b^5 + 256*a^3*b^4))/(4*(a^2 - 2*a*b + b^2)))*((a*(a^3*b^3)^(1/2) + 3*
b*(a^3*b^3)^(1/2) + a*b^3 + 3*a^2*b^2)/(256*(a^2*b^6 - 3*a^3*b^5 + 3*a^4*b^4 - a^5*b^3)))^(1/2) - (cos(c + d*x
)*(a*b^2 + b^3))/(4*(a^2 - 2*a*b + b^2)))*((a*(a^3*b^3)^(1/2) + 3*b*(a^3*b^3)^(1/2) + a*b^3 + 3*a^2*b^2)/(256*
(a^2*b^6 - 3*a^3*b^5 + 3*a^4*b^4 - a^5*b^3)))^(1/2)))*((a*(a^3*b^3)^(1/2) + 3*b*(a^3*b^3)^(1/2) + a*b^3 + 3*a^
2*b^2)/(256*(a^2*b^6 - 3*a^3*b^5 + 3*a^4*b^4 - a^5*b^3)))^(1/2)*2i)/d - (atan(((((512*a*b^4 - 512*a^2*b^3)/(64
*(a^2 - 2*a*b + b^2)) - (cos(c + d*x)*(-(a*(a^3*b^3)^(1/2) + 3*b*(a^3*b^3)^(1/2) - a*b^3 - 3*a^2*b^2)/(256*(a^
2*b^6 - 3*a^3*b^5 + 3*a^4*b^4 - a^5*b^3)))^(1/2)*(256*a*b^6 - 512*a^2*b^5 + 256*a^3*b^4))/(4*(a^2 - 2*a*b + b^
2)))*(-(a*(a^3*b^3)^(1/2) + 3*b*(a^3*b^3)^(1/2) - a*b^3 - 3*a^2*b^2)/(256*(a^2*b^6 - 3*a^3*b^5 + 3*a^4*b^4 - a
^5*b^3)))^(1/2) + (cos(c + d*x)*(a*b^2 + b^3))/(4*(a^2 - 2*a*b + b^2)))*(-(a*(a^3*b^3)^(1/2) + 3*b*(a^3*b^3)^(
1/2) - a*b^3 - 3*a^2*b^2)/(256*(a^2*b^6 - 3*a^3*b^5 + 3*a^4*b^4 - a^5*b^3)))^(1/2)*1i - (((512*a*b^4 - 512*a^2
*b^3)/(64*(a^2 - 2*a*b + b^2)) + (cos(c + d*x)*(-(a*(a^3*b^3)^(1/2) + 3*b*(a^3*b^3)^(1/2) - a*b^3 - 3*a^2*b^2)
/(256*(a^2*b^6 - 3*a^3*b^5 + 3*a^4*b^4 - a^5*b^3)))^(1/2)*(256*a*b^6 - 512*a^2*b^5 + 256*a^3*b^4))/(4*(a^2 - 2
*a*b + b^2)))*(-(a*(a^3*b^3)^(1/2) + 3*b*(a^3*b^3)^(1/2) - a*b^3 - 3*a^2*b^2)/(256*(a^2*b^6 - 3*a^3*b^5 + 3*a^
4*b^4 - a^5*b^3)))^(1/2) - (cos(c + d*x)*(a*b^2 + b^3))/(4*(a^2 - 2*a*b + b^2)))*(-(a*(a^3*b^3)^(1/2) + 3*b*(a
^3*b^3)^(1/2) - a*b^3 - 3*a^2*b^2)/(256*(a^2*b^6 - 3*a^3*b^5 + 3*a^4*b^4 - a^5*b^3)))^(1/2)*1i)/(b/(32*(a^2 -
2*a*b + b^2)) + (((512*a*b^4 - 512*a^2*b^3)/(64*(a^2 - 2*a*b + b^2)) - (cos(c + d*x)*(-(a*(a^3*b^3)^(1/2) + 3*
b*(a^3*b^3)^(1/2) - a*b^3 - 3*a^2*b^2)/(256*(a^2*b^6 - 3*a^3*b^5 + 3*a^4*b^4 - a^5*b^3)))^(1/2)*(256*a*b^6 - 5
12*a^2*b^5 + 256*a^3*b^4))/(4*(a^2 - 2*a*b + b^2)))*(-(a*(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